﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;

namespace ServBus.ListForm2010.Setup.Utilities
{
    class Log
    {
        public enum LogType
        {
            Info,
            Warning,
            Error
        }

        public static void WriteLog(LogType type, string message)
        {
            File.AppendAllText(Path.Combine(Constants.EXTRACTDIRECTORY, "setup.log"),
                string.Format("{0}\t[{1}]\t{2}{3}", DateTime.Now.ToString(), type.ToString(),
                message, Environment.NewLine));
        }
    }
}
